//
//  PinYinView.h
//  ToolLibrary
//
//  Created by 蓓蕾 on 2024/1/22.
//  Copyright © 2024 Yang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PinYinItemView.h"

NS_ASSUME_NONNULL_BEGIN

@interface PinYinView : UIView

@property (nonatomic, assign) double realWidth;
@property (nonatomic, assign) double realHeight;

+(instancetype)createTextViewWidth:(CGFloat)width contentArray:(NSArray *)contentArray pinYinArray:(NSArray *)pinYinArray config:(PinYinConfig *)config withEndBlock:(void(^)(PinYinView *endResult))endResult;
+(instancetype)createTextViewWidth:(CGFloat)width contentArray:(NSArray *)contentArray pinYinArray:(NSArray *)pinYinArray config:(PinYinConfig *)config;

+(instancetype)createTextViewWidth:(CGFloat)width contentArray:(NSArray *)contentArray pinYinArray:(NSArray *)pinYinArray withEndBlock:(void(^)(PinYinView *endResult))endResult;
+(instancetype)createTextViewWidth:(CGFloat)width contentArray:(NSArray *)contentArray pinYinArray:(NSArray *)pinYinArray;

@property (nonatomic, copy) void (^CreateFinishedBlock) (PinYinView *endResult);

@end

NS_ASSUME_NONNULL_END
